<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../bootstrap-3.3.5-dist/css/bootstrap.css"/>
		<script src="../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.checkbox{
				width: 0.15rem;
				height: 0.15rem;
				border: none;
				border-radius: 50%;
				color: ghostwhite;
				background-color: firebrick;
				text-align: center;
				line-height: 0.15rem;
				font-size: 0.2rem;
			}
		</style>
	</head>
	<body>
		<div class="checkbox" val = "true">
			
		</div>
		
		
		<script type="text/javascript">
			(function(doc, win){
		        var docEl = doc.documentElement,
		            resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
		            recalc = function(){
		                var clientWidth = docEl.clientWidth;
		                if(!clientWidth) return;
		                docEl.style.fontSize = 100 * (clientWidth / 330) + 'px';
		            };
		        if(!doc.addEventListener) return;
		        win.addEventListener(resizeEvt, recalc, false);
		        doc.addEventListener('DOMContentLoaded', recalc, false);
		    })(document, window);
			$(".checkbox").click(function(){
				
				$(this).val(!Boolean($(this).val()))
				if($(this).val()){
					$(this).addClass("glyphicon glyphicon-ok")
				}else{
					$(this).removeClass("glyphicon glyphicon-ok")
				}
				console.log($(this).val())
			})
		</script>
	</body>
</html>
